<?php
require_once "application/dataAccess.php";
if (session_id != "" || isset($_COOKIE[session_name()]))
{
	$da = new dataAccess();
	$da->clear_old_history_login(session_id());
	session_destroy();
	if(setcookie(session_name(), '', time()-65543688, '/'))
	{
		echo '<script>location.href=\'index.php?page=login\'</script>';
	}
 }
?>